package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureBaseinfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 基地信息业务对象 agriculture_baseinfo
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureBaseinfo.class, reverseConvertGenerate = false)
public class AgricultureBaseinfoBo extends BaseEntity {

    /**
     * 基地ID
     */
    @NotNull(message = "基地ID不能为空", groups = { EditGroup.class })
    private Long baseId;

    /**
     * 基地简称
     */
    @NotBlank(message = "基地简称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseShortName;

    /**
     * 基地编号
     */
    @NotBlank(message = "基地编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseCode;

    /**
     * 基地全称
     */
    @NotBlank(message = "基地全称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseName;

    /**
     * 基地负责人
     */
    @NotBlank(message = "基地负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseLeader;

    /**
     * 基地负责人电话
     */
    @NotBlank(message = "基地负责人电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String leaderTel;

    /**
     * 基地负责人地址
     */
    @NotBlank(message = "基地负责人地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseAddress;

    /**
     * 基地面积
     */
    @NotBlank(message = "基地面积不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseArea;

    /**
     * 基地海拔
     */
    @NotNull(message = "基地海拔不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseAltitude;

    /**
     * 现场图片
     */
    @NotBlank(message = "现场图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseImg;

    /**
     * 基地描述
     */
    @NotBlank(message = "基地描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseDes;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * $column.columnComment
     */
    @NotBlank(message = "$column.columnComment不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseCoordinate;
}
